package com.shanzmoo.db.stm.mapper;

import com.shanzmoo.db.stm.entity.StmMemberRoleEntity;
import com.shanzmoo.db.stm.entity.StmSysRoleEntity;
import com.shanzmoo.db.stm.entity.query.StmMemberRoleQuery;
import com.shanzmoo.db.stm.entity.vo.StmMemberRoleVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 仓储用户系统用户角色关联表 Mapper 接口
 *
 * @author Gzhao 2021-03-10
 */
public interface StmMemberRoleMapper extends BaseMapper<StmMemberRoleEntity> {

    List<StmMemberRoleVO> queryPageList(StmMemberRoleQuery query);

    List<StmSysRoleEntity> getUserRoles(@Param("memberId") Integer memberId);
}
